package cn.iocoder.yudao.module.kt.dal.mysql.jiaocai;

import java.util.*;

import cn.iocoder.yudao.framework.common.pojo.PageResult;
import cn.iocoder.yudao.framework.common.pojo.PageParam;
import cn.iocoder.yudao.framework.mybatis.core.query.LambdaQueryWrapperX;
import cn.iocoder.yudao.framework.mybatis.core.mapper.BaseMapperX;
import cn.iocoder.yudao.module.kt.dal.dataobject.jiaocai.JiaocaiDO;
import org.apache.ibatis.annotations.Mapper;

/**
 * 教材资源 Mapper
 *
 * @author 芋道源码
 */
@Mapper
public interface JiaocaiMapper extends BaseMapperX<JiaocaiDO> {

    default List<JiaocaiDO> selectListByResourceId(Long resourceId) {
        return selectList(JiaocaiDO::getResourceId, resourceId);
    }

    default int deleteByResourceId(Long resourceId) {
        return delete(JiaocaiDO::getResourceId, resourceId);
    }

}